import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase="DBshop031_编辑特定商品标签"
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,"商品管理","商品标签","特定商品标签")

firefox.find_element_by_xpath("//td[text()='手机端首页商品']/following-sibling::td[2]/a[2]").click()
firefox.switch_to_alert().accept()
time.sleep(3)
try:
    firefox.find_element_by_xpath("//td[text()='手机端首页商品']")
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)

except:
    writeLog("%s 测试通过" % testCase)

